<?php
/**
 * This file is part of Notadd.
 *
 * @datetime 2017-11-20 17:04:54
 */

use Illuminate\Database\Schema\Blueprint;
use Notadd\Foundation\Database\Migrations\Migration;

/**
 * Class CreateExtSeckillSeckillsTable.
 */
class CreateExtSeckillSeckillsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        $this->schema->create('ext_seckill_seckills', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->comment('活动名称');
            $table->string('date')->comment('活动日期');
            $table->integer('time_block_id')->comment('活动时间段');
            $table->tinyInteger('useful')->comment('活动是否启用');
            $table->string('spus')->comment('参与活动的商品');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        $this->schema->drop('ext_seckill_seckills');
    }
}
